package org.dflish.mybatis.encrypt.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @author liangwx
 */
@Setter
@Getter
@ConfigurationProperties(prefix = EnCryptProperties.NAME)
public class EnCryptProperties {

    public static final String NAME = "mybatis-plus.encrypt";

    /**
     * 是否开启
     */
    private Boolean enabled = false;

    private String key;

    private Map<String, EncryptTableRuleConfiguration> tables = new LinkedHashMap<>();
}
